package org.pettyfox.pfpay.config;

import lombok.extern.slf4j.Slf4j;
import org.pettyfox.pfpay.biz.PayAloneBiz;
import org.pettyfox.pfpay.biz.PayAloneRealPayBiz;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@Slf4j
public class BootAfter implements ApplicationRunner {
    @Resource
    PayAloneRealPayBiz payAloneRealPayBiz;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("boot ok");
        payAloneRealPayBiz.initQueue();
    }
}
